import java.util.*;
public class Peaklass {
	public static void main(String[] args) { //peameetod
		List<String> menuu = new ArrayList<String>();
		Map<String,Integer> kaloritabel = new HashMap<String,Integer>();
		kaloritabel.put("Praekartulid",120);
		kaloritabel.put("Makaronid",80);
		kaloritabel.put("Praekartulid2",90);
		menuu.add("Praekartulid");
		menuu.add("Makaronid");
		Talu t = new Talu(10, menuu, kaloritabel);
		Sulane s1 = new Sulane("Ants", 5, 20, 60, 0, t);
		Sulane s2 = new Sulane("Mats", 4, 30, 50, 0, t);
		Thread t1 = new Thread(s1, "Ants");
		t1.start();
		Thread t2 = new Thread(s2, "Mats");
		t2.start();
	}

}
